package com.bj.dz.controller;//package com.bj.dz.controller;
//
//import com.bj.dz.service.MessageFeignClient;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//@Api(tags = "【Feign组件调用】")
//@RestController
//@RequestMapping("/app")
//public class AppController {
//    @Autowired
//    private MessageFeignClient messageFeignClient;
//    /**
//     * 测试Feign组件调用
//     * @param
//     * @return
//     */
//    @ApiOperation(value = "调用短信服务")
//    @RequestMapping(value="/go",method = RequestMethod.POST, produces = "application/json;" +"charset=UTF-8")
//    public R feignGo(){
//        return messageFeignClient.getMsgCode("17791716568");
//    }
//
//    @ApiOperation(value = "调用邮件服务")
//    @RequestMapping(value="/go2",method = RequestMethod.POST, produces = "application/json;" +"charset=UTF-8")
//    public R feignGo2(){
//        String mailNum="tumuzhuang@aliyun.com";
//        String subject="number1";
//        String content="everyone is number1.......";
//        MailModel mailModel=new MailModel();
//        mailModel.setMailNum(mailNum);
//        mailModel.setSubject(subject);
//        mailModel.setContent(content);
//        return messageFeignClient.sendSimpleMail(mailModel);
//    }
//
//
//}
